package com.yxuan.springboot.model;

import java.io.Serializable;
import java.util.Date;
import com.fasterxml.jackson.annotation.JsonFormat;
import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.Data;
import com.fasterxml.jackson.annotation.JsonIgnoreProperties;

/**
 * 
 * @author zchao
 *    Comment实体类
 * @date 2023-05-18 23:23:15
 */
@Data
@ApiModel(description = "文章评论表")
@JsonIgnoreProperties(value = { "hibernateLazyInitializer", "handler" })
public class Comment implements Serializable{

	  private static final long serialVersionUID = 1L;
	
	  @ApiModelProperty(value = "评论id（主键）")
	  private Integer id;
	  @ApiModelProperty(value = "评论人Id")
	  private String userLogin;
	  @ApiModelProperty(value = "文章Id")
	  private String information;
	  @ApiModelProperty(value = "评论内容")
	  private String content;
      @JsonFormat(pattern = "yyyy/MM/dd HH:mm:ss" ,timezone = "GMT+8")
	  @ApiModelProperty(value = "评论时间(自动生成)")
	  private Date commentTime;
	  @ApiModelProperty(value = "逻辑删除: 0未删除,1已删除(默认0)")
	  private String deleteState;

	  //用户头像
	  private String headImage;


}
